package com.tydic.portal.controller;

import com.tydic.common.core.domain.R;
import jakarta.validation.constraints.NotBlank;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/switchSkin")
@RequiredArgsConstructor
@Slf4j
public class SwitchSkinController {

    /**
     * 切换皮肤
     *
     * @param type 皮肤类型
     * @return
     */
    @GetMapping("/{type}")
    public R<Void> skin(@NotBlank(message = "皮肤类型不能为空") @PathVariable("type") String type) {
        log.info("皮肤类型:{}", type);
        return R.ok();
    }
}
